﻿@{
    ViewBag.Title = "属性表";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<style>
    .uom{
        display:none;
    }
</style>
<div class="lr-form-wrap" id="form">
    <div class="col-xs-12 lr-form-item" data-table="ec_property">
        <div class="lr-form-item-title">所在属性组<font face="宋体">*</font></div>
        <div id="PropertyGID" class="input_right"></div>
    </div>

    <div class="col-xs-12 lr-form-item" data-table="ec_property">
        <div class="lr-form-item-title">属性名称<font face="宋体">*</font></div>
        <input id="PropertyName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" onkeyup="ChangeNameEN(this);" />
    </div>
    <div class="col-xs-12 lr-form-item" data-table="ec_property">
        <div class="lr-form-item-title">属性显示名<font face="宋体">*</font></div>
        <input id="PropertyNameEN" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
    </div>
    <div class="col-xs-12 lr-form-item" data-table="ec_property">
        <div class="lr-form-item-title">属性类型<font face="宋体">*</font></div>
        <div id="PropertyType" isvalid="yes" checkexpession="NotNull"></div>
    </div>
    <div class="col-xs-12 lr-form-item" data-table="ec_property" id="divDecimalPoint" style="display:none;">
        <div class="lr-form-item-title">小数点<font face="宋体">*</font></div>
        <input id="DecimalPoint" type="text" class="form-control" onkeyup="value=value.replace(/[^\d]/g,'')" />
    </div>
    <div class="col-xs-12 lr-form-item" data-table="ec_property" id="divEnumData" style="display:none;">
        <div class="lr-form-item-title">枚举数据<font face="宋体">*</font></div>
        <div id="EnumData"></div>
    </div>
    <div class="col-xs-12 lr-form-item uom" data-table="ec_property">
        <div class="lr-form-item-title">计量单位分类</div>
        <div id="MeasuringUnitTypeID"></div>
    </div>
    <div class="col-xs-12 lr-form-item uom" data-table="ec_property">
        <div class="lr-form-item-title">默认计量单位</div>
        <div id="DefaultUnit"></div>
    </div>
    <div class="col-xs-12 lr-form-item" data-table="ec_property">
        <div class="lr-form-item-title">排序<font face="宋体">*</font></div>
        <input id="OrderID" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" onkeyup="value=value.replace(/[^\d]/g,'')" />
    </div>
    <div class="col-xs-12 lr-form-item" data-table="ec_property" id="divDefaultValue">
        <div class="lr-form-item-title">默认值</div>
        <input id="DefaultValue" type="text" class="form-control" />
    </div>
    <div class="col-xs-12 lr-form-item" data-table="ec_property" id="divDataItemDetailID" style="display:none;">
        <div class="lr-form-item-title">默认值</div>
        <div id="DataItemDetailID"></div>
    </div>
    <div class="col-xs-12 lr-form-item" data-table="ec_property">
        <div class="checkbox">
            <label>
                <input id="IsRequired" type="checkbox" />
                是否必填
            </label>
        </div>
    </div>
    <div class="col-xs-12 lr-form-item" data-table="ec_property">
        <div class="checkbox">
            <label>
                <input id="BasicGroup" type="checkbox" />
                是否为常用
            </label>
        </div>
    </div>
</div>
@Html.AppendJsFile("/Areas/ZZDT_EC/Views/ec_property/Form.js")
